<div class=page_head>
<h2>Editing story</h2>
</div>

<%= error_messages_for :story %>

<% form_for(:story, :url => story_path(@story), :html => { :method => :put }) do |f| %>
  <p>
    <b>company Name</b><br />
    <%= f.text_field :name %>
  </p>
    <%= f.check_box :in_home%>
    <b>Show in homapge</b>
    </p>
  <p>
    <b>Buzz</b><br />
    <%= f.text_field :buzz %>
  </p>

  <p>
    <b>industry</b><br />
    <%= f.text_field :industry%>
  </p>

  <p>
    <b>owner</b><br />
    <%= f.text_field :owner%>
  </p>

  <p>
    <b>Url</b><br />
    <%= f.text_field :url %>
  </p>

  <p>
    <b>Body</b><br />
    <%= fckeditor_text("story[body]",'message',@story.body) %>
  </p>

  <p>
    <%= submit_tag "Update" %>
  </p>
<% end %>

<%= link_to 'Show', story_path(@story) %> |
<%= link_to 'Back', stories_path %>
